<template>
    <div class="title">{{ title }}</div>
</template>
<script>
export default
{
    data() {
        return {
            title:"我是开头"
        }
        },  

        methods: {
            log:function()
            {
                console.log("打印消息");
            }
        },
}
</script>
<style scoped lang="less">
.title
{
    width: 200px;
    height: 50px;
    background-color:red;
}
</style>